package com.youdoneed.community.shortVideo.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.youdoneed.community.shortVideo.entity.Musiclibrary;
import com.youdoneed.community.shortVideo.entity.Musictyperel;
@Mapper
public interface MusictyperelMapper {
    int deleteByPrimaryKey(String musicTypeRelId);

    int insert(Musictyperel record);

    int insertSelective(Musictyperel record);

    Musictyperel selectByPrimaryKey(String musicTypeRelId);

    int updateByPrimaryKeySelective(Musictyperel record);

    int updateByPrimaryKey(Musictyperel record);
    
    List<Musiclibrary> findTypeMusic(String typeId);
    
    List<Musictyperel> selectByTypeId(String typeId);
    
    List<Musiclibrary> findTypeMusicByName(@Param("typeId") String typeId,@Param("name")String name);
    
    List<Musictyperel> findMusictyperelByMusicId(String musicId);
    
    Musictyperel findUniqueTypeMusic(@Param("typeId") String typeId,@Param("musicId")String musicId);
    
    int findTypeMusicForTotal(String typeId);
    
    int findTypeMusicByNameForTotal(@Param("typeId") String typeId,@Param("name")String name);
    
}